package com.wenson.structural.facade;

/**
 * @ClassName: FacadeClient
 * @Author: luowangcheng
 * @Date: 2024/6/13 8:41
 * @Description:
 */
public class FacadeClient {
    public void eat(){
        System.out.println("开始用餐……");
    }

    public void wash(){
        System.out.println("洗碗……");
    }

    public static void main(String[] args) {
        // 找蔬菜商买菜
        VegVendor vegVendor = new VegVendor();
        vegVendor.purchase();
        // 找妹妹下厨
        Helper sister = new Helper();
        sister.cook();
        // 客户端用餐
        FacadeClient client = new FacadeClient();
        client.eat();
        //最后洗碗
        client.wash();
    }
}
